export default class NativeBridge {
    public static openBrowser(url: string) {
        const config: string[] = [
            'hidenavigationbuttons=no',
            'mediaPlaybackRequiresUserAction=no',
            'hideurlbar=yes',
            'toolbarcolor=#F5A8BA',
            'navigationbuttoncolor=#ffffff',
            'closebuttoncolor=#ffffff',
            'closebuttoncaption=关闭',
            'toolbarposition=top',
            'hidespinner=yes',
        ];
        cordova.InAppBrowser.open(encodeURI(url), '_blank', config.join(','));
    }

}
